#include "student.h"

Student_t::~Student_t()
{
	delete imp;
	imp = 0;
}

Student_t::Student_t(const unsigned int& n, const string& impl, UV* pUv)
{
	uv = pUv;
	imp = StudentFactory::createStudent(n, impl);
}

unsigned int Student_t::getId()
{
	return imp->getId();
}

void Student_t::update(UV* chngUv, const int& n)
{
	if(chngUv == uv)
		imp->handle(n);

}
